package com.hq.ims.data.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.hq.ims.data.entityenum.EnumPlatformTodoType;
import com.hq.ims.data.vo.PlatformTodoStatisticsDetailMapstruct;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* @author 蒋柏平
* @since 20241108
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("PlatformTodoStatisticsDetail")
@TableName(value = "platform_todo_statistics_detail")
@ApiModel(value = "平台端待办统计详情", description = "平台端待办统计详情")
public class PlatformTodoStatisticsDetail extends BaseModel<PlatformTodoStatisticsDetail> implements Serializable {

    @ApiModelProperty(value = "平台办统计详情ID")
    @TableId(value = "platform_todo_statistics_detail_id", type = IdType.ASSIGN_UUID)
    private String platformTodoStatisticsDetailId;

    @ApiModelProperty(value = "平台待办统计ID")
    @TableField(value = "platform_todo_statistics_id")
    private String platformTodoStatisticsId;

    @ApiModelProperty(value = "平台待办类型")
    @TableField(value = "platform_todo_type")
    private EnumPlatformTodoType platformTodoType;

    @ApiModelProperty(value = "数据ID")
    @TableField(value = "table_id")
    private String tableId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_date_time", fill = FieldFill.INSERT)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDateTime;

    public PlatformTodoStatisticsDetailMapstruct.PlatformTodoStatisticsDetailRowAuthVo auth(){
        PlatformTodoStatisticsDetailMapstruct.PlatformTodoStatisticsDetailRowAuthVo auth = new PlatformTodoStatisticsDetailMapstruct.PlatformTodoStatisticsDetailRowAuthVo(this);
        return auth;
    }

}
